<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <link rel="Bookmark" href="../imgs/bai.ico"/>
    <link rel="Shortcut Icon" href="../imgs/bai.ico"/>
    <title>场景选择</title>
    <style type="text/css">
        * { margin: 0; }
        body { margin: 0; padding: 0; background: #eee; }
        #header { padding: 10px 0; width: 100%; background: #fff; text-align: center; color: #888; font-size: 12px; font-weight: bolder; box-shadow: 0 0 5px #888; position: fixed; top: 0; z-index: 1000; }
        #body { position: fixed; top: 0; }
        #fanhui { margin-left: 10px; float: left; }
    </style>
</head>
<body>
    <!--header-->
    <div id="header">
        <span id="fanhui" onclick="history.back();">返回</span>
        场景播放
        <span id="playNum">&nbsp; &nbsp;</span>
    </div>

    <!--视频列表-->
    <div id="body">
        <!--<video src="http://api.jiuge_freecode.com/videos/2024/20240202.mp4" style="width: 100%;" controls autoplay muted loop></video>-->
        <!--<video width="100%" controls="controls" loop="loop" autoplay="autoplay">-->
            <!--<source src="http://api.jiuge_freecode.com/videos/2024/20240202.mp4" type="video/mp4">-->
            <!--你的浏览器不支持视频标签-->
        <!--</video>-->
    </div>

    <!--APP弹窗-->
    <span id="appPop"></span>
    <!--信息弹窗-->
    <span id="msgPop"></span>
</body>
</html>


<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="../js/config.js"></script>
<script type="text/javascript" src="../js/view.js"></script>
<script type="text/javascript" src="../js/ewm/jquery.qrcode.js"></script>
<script type="text/javascript" src="../js/ewm/utf.js"></script>
<script type="text/javascript" src="../js/ewm/html2canvas.min.js"></script>
<script type="text/javascript" src="../js/ewm/FileSaver.js"></script>
<script type="text/javascript">
    var cw = document.documentElement.clientWidth;
    var ch = document.documentElement.clientHeight;
    var code = getParamByUrl('code');
    var token = getParamByUrl('token');
    var vid = getParamByUrl('vid');
    var scenceId = getParamByUrl('scenceId');
    var vcover = getParamByUrl('vcover');
    var vlink = getParamByUrl('vlink');
    var playNum = getParamByUrl('playNum');
    var useNum = getParamByUrl('useNum');
    var viewName = getParamByUrl('viewName');
    var userType = getParamByUrl('userType');
    var chbody = ch - 60;
    console.log(cw, ch, chbody);
    console.log(vlink);
    (function(){
        if (vlink == '') {
            msgPop({msg:'没有视频'}); return
        }
        $('#playNum').html('（' + playNum + '）');
        var h = '';
        h += '<video poster="' + vcover + '" src="' + vlink + '" style="width: 100%;" controls autoplay muted loop></video>';
        //菜单
        h += '<div style="width: 50px; text-align: center; position: fixed; top: 70%; right: 20px;">';
        h += '<img src="../imgs/mpUse.png" style="width: 50px; height: 50px;" onclick="getForm();">';
        h += '<div style="color: #fff; font-size: 12px;">' + useNum + '</div>';
        h += '</div>';
        $('#body').html(h);
    })();
    function play(){
        console.log('11');
    }
    //获取表单
    function getForm(){
        //console.log(viewName, userType, vid); return;
        if (!viewName) {
            msgPop({msg: '没有页面参数'});
            return
        }
        if (userType == 2 || userType == 3) { //商户功能只能小程序编辑
            appPop();
            return
        }
        var toUrl = '/views/' + viewName + '/add.html?code=' + code + '&vid=' + vid + '&token=' + token;
        console.log(toUrl);
        window.location.href = toUrl;
    }
</script>